import { Injectable } from '@angular/core';
import { Observable} from 'rxjs';
import { Http} from '@angular/http';
import {GlobalService} from "../../global.service";

@Injectable()
export class SubmissionsService {

  constructor(
    private http:Http,
    private globalService:GlobalService,
  ) { }


  findProblemSet(data): Observable<any>{
    return this.http.post(this.globalService.api+'/services/core/findProblemSet',data);
  }

  findPageJudgeInfos(data): Observable<any>{
    return this.http.post(this.globalService.api+'/services/core/findPageJudgeInfos',data);
  }
}
